import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

const routes = [
  {
    path: '/',
    name: 'Index',
    component: () => import('../views/Index/index')
  }, {
    path: '/entity2json',
    name: 'Entity2JSON',
    component: () => import('../views/Entity2JSON/entity-json')
  }, {
    path: '/json2element',
    name: 'JSON2Element',
    component: () => import('../views/JSON2Element/json-element')
  }, {
    path: '/test',
    name: 'Test',
    component: () => import('../views/Test/test')
  }, {
    path: '*',
    name: '404',
  }
];

const router = new Router({
  routes: routes
});

export default router;


